package com.daka.service;

import com.daka.entity.Organization;
import com.daka.vo.response.DataResponseVo;
import com.daka.vo.response.org.OrgCountResponseVo;

import java.util.List;

/**
 * @author beliveli on 2016/4/6 0006.
 */
@SuppressWarnings("unused")
public interface OrganizationService {
    Organization selectById(int orgId);

    List<Organization> selectAllChild(int orgId);

    List<Organization> selectAllChildNoSelf(int orgId);

    List<Organization> selectChild(int orgId);

    List<Organization> selectAllChild(int orgId, String orgName, int pageIndex);

    int selectCount(int orgId, String orgName);

    Organization save(Organization organization, int orgParent, int userId);

    int updateById(Organization organization);

    Organization updateStatus(Integer orgId);

    DataResponseVo<OrgCountResponseVo> count(int orgId);
}
